#include <iostream> 
#include <qapplication.h>
#include <qregexp.h> 
#include <qdatetime.h>
#include <qdir.h>

using namespace std;

#include <mythtv/mythcontext.h>
#include <mythtv/mythwidgets.h>
#include <mythtv/mythdbcon.h>

#include "metadata.h"

//bool operator==(const Metadata& a, const Metadata& b)
//{
//    if (a.Filename() == b.Filename())
//        return true;
//    return false;
//}
//
//bool operator!=(const Metadata& a, const Metadata& b)
//{
//    if (a.Filename() != b.Filename())
//        return true;
//    return false;
//}

//Metadata& Metadata::operator=(Metadata *rhs)
//{
//    artist = rhs->artist;
//    compilation_artist = rhs->compilation_artist;
//    album = rhs->album;
//    title = rhs->title;
//    genre = rhs->genre;
//    year = rhs->year;
//    tracknum = rhs->tracknum;
//    length = rhs->length;
//    compilation = rhs->compilation;
//    filename = rhs->filename;
//
//    return *this;
//}

bool Metadata::determineIfCompilation(bool cd)
{ 
    compilation = (!compilation_artist.isEmpty() 
                   && artist != compilation_artist);
//    setCompilationFormatting(cd);
    return compilation;
}
